#define _HIS_DATA_TASK_MODULE_

#include "common.h"
#include "gpio.h"
#include "histdatatask.h"
#include "pulse.h"
#include "dataproc.h"
#include "pulse.h"
#include "os_obj.h"
#include "malloc.h"
#include "flashtoeep.h"
#include "gd25q_cmd.h"

#define RAM_BASE             (16*1024*1024UL)
#define FLASH_BASE_HIST_BUFF (8 * 1024 * 1024UL)
#define FLASH_SIZE_HIST_BUFF (128 * 1024UL)
#define FLASH_SIZE_SECTOR    (4 * 1024UL)

void hist_buff_program(uint32_t addr, uint32_t data);
void hist_buff_erase(uint32_t addr, uint32_t nums);
void hist_buff_unlock(void);
void hist_buff_lock(void);
void hist_buff_full_call_back(void);


/*****************************************************************************/ /*!
*
* @brief   led task.
*
* @param   none
*
* @return  none
*
* @ Pass/ Fail criteria: none
*****************************************************************************/
void HisDataTask(void *argument)
{

    osDelay(50);


    for (;;)
    {
        osDelay(ms_ticks(100));

    
    }
}
